# -*- coding:utf-8 -*-

from com.mat.rpa.utils.globalConstants import GlobalConstants
from com.mat.rpa.views.workWindow.leftPanel.directiveTree import treeItem
from .mailOperation import mailOperationSubDirectiveTree
from .HTTPOperation import HTTPOperationSubDirectiveTree
from .FTPOperation import FTPOperationSubDirectiveTree
from .enterpriseMessage import enterpriseMessageSubDirectiveTree

class NetworkOperationSubDirectiveTree(treeItem.TreeItemWithID):
    def __init__(self, parent):
        super(NetworkOperationSubDirectiveTree, self).__init__(parent)
        self.createNetworkOperationTreeNode()

    def createNetworkOperationTreeNode(self):
        self.nodeType = GlobalConstants.treeBranchType
        self.directiveType = "networkOperation"
        self.setText(0,"网络操作(邮件、HTTP、FTP、企业群通知)")
        #挂载子树
        mailOperationSubDirectiveTree.MailOperationSubDirectiveTree(self)
        HTTPOperationSubDirectiveTree.HTTPOPerationSubDirectiveTree(self)
        FTPOperationSubDirectiveTree.FTPOPerationSubDirectiveTree(self)
        enterpriseMessageSubDirectiveTree.EnterpriseMessageSubDirectiveTree(self)



